<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <title>SUHCK - Sistema Unificado Hospitalar de Controle Kabuloso </title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="title" content="Web site" />
        <meta name="description" content="Site description here" />
        <meta name="keywords" content="keywords here" />
        <meta name="language" content="en" />
        <meta name="subject" content="Site subject here" />
        <meta name="robots" content="All" />
        <meta name="copyright" content="Your company" />
        <meta name="abstract" content="Site description here" />
        <meta name="MSSmartTagsPreventParsing" content="true" />
        <link id="theme" rel="stylesheet" type="text/css" href="style.css" title="theme" />
        <script src="jQueryAssets/jquery-1.8.3.min.js" type="text/javascript"></script>
        <script src="jQueryAssets/jquery-ui-1.9.2.tabs.custom.min.js" type="text/javascript"></script><script src="jQueryAssets/jquery-ui-1.9.2.button.custom.min.js" type="text/javascript"></script>
        <link rel="stylesheet" href="js/jquery-ui-1.11.2/jquery-ui.structure.css">
            <link href="jQueryAssets/jquery.ui.core.min.css" rel="stylesheet" type="text/css" />
            <link href="jQueryAssets/jquery.ui.theme.min.css" rel="stylesheet" type="text/css" />
            <link href="jQueryAssets/jquery.ui.tabs.min.css" rel="stylesheet" type="text/css" />
            <link href="jQueryAssets/jquery.ui.button.min.css" rel="stylesheet" type="text/css" />
    </head>
    <body> 
        <div id="wrapper"> 
            <div id="bg"> 
                <div id="header"></div>  
                <div id="page"> 
                    <div id="container"> 
                        <!-- banner -->  
                        <div id="banner"></div>  
                        <!-- end banner -->  
                        <!-- horizontal navigation -->  
                        <div id="nav1"> 
                            <ul>
                                <li>
                                    <a href="InicioMedico.jsp" shape="rect">Pagina Inicial</a>
                                </li>
                                <li>
                                    <a href="InicioMedico.jsp">Voltar </a>
                                </li>
                                <li> <blockquote></blockquote></li>
                                <li> <blockquote></blockquote></li>
                                <li> <blockquote></blockquote></li>
                                <li> <blockquote></blockquote></li>


                                <li> <blockquote></blockquote></li>
                                <li>
                                    <a href="Front?action=logout">Sair </a>
                                </li>
                            </ul> 
                        </div> 
                        <!-- end horizontal navigation -->  
                        <!--  content -->  
                        <div id="content">
                            <div id="center"> 
                                <div id="welcome"> 
                                    <h2>PAINEL MEDICO - Atender Paciente</h2><br />

                                    <h2>Dados do Paciente</h2>
                                    <form  action="Front" method="POST">

                                        <label>Senha Painel: </label><input type="text"  name="senhapainel" disabled="disabled" value="${agendamento.id}" size="25"/> 
                                        <label>Data/Hora: </label><input type="datetime"  name="data" disabled="disabled" value="${agendamento.dataAgendamento}" size="25"/> <br />
                                        <br />
                                        <label>Nome: </label><input type="text"  name="nome" disabled="disabled" value="${agendamento.paciente.nome}" size="40"/> 
                                        <label for="select">CPF:</label><input type="text"  name="cpf" disabled="disabled" value="${agendamento.paciente.cpf}" size="23"/> 
                                        <br />
                                        <br />      
                                        <label>Telefone: </label><input type="text"  name="telefone" disabled="disabled" value="${agendamento.paciente.telefone}" size="23"/> 
                                        <label for="select">E-mail: </label><input type="text"  name="email" disabled="disabled" value="${agendamento.paciente.email}" size="35"/> 
                                        <br />
                                        <br />      
                                        <label>Plano de Saúde: </label><input type="text"  name="plano" disabled="disabled" value="${agendamento.paciente.pacientePlano.planoSaude.nome}" size="25"/> 
                                        <label for="select">Tipo Plano: </label><input type="text"  name="tipoplano" disabled="disabled" value="${agendamento.paciente.pacientePlano.tipo}" size="23"/> 
                                        <br />
                                        <br />      
                                        <label>Número: </label><input type="text"  name="numero" disabled="disabled" value="${agendamento.paciente.pacientePlano.numero}" size="25"/> 
                                        <br />
                                        <br />     
                                        <label>Estado do Paciente: </label><input type="text"  name="numero" disabled="disabled" value="${agendamento.estadoPaciente}" size="30"/> <br /><br />
                                        <label>Anamnese: </label><br />
                                        <textarea disabled cols="70" rows="10" name="anamnese">${agendamento.anamnese}</textarea><p><br />  <br />
                                            <label>Atendimentos anteriores: </label>
                                            <p><table width="500" border="1">
                                                    <tr>
                                                        <th scope="col">Data</th>
                                                        <th scope="col">Médico</th>
                                                        <th scope="col">Especialidade</th>
                                                    </tr>
                                                    <c:forEach items="${atendimentos}" var="atendimento">
                                                        <tr>
                                                            <td>${atendimento.dataAtendimento}</td>
                                                            <td>${atendimento.medico.nome}</td>
                                                            <td>${atendimento.medico.especialidade}</td>
                                                        </tr>
                                                    </c:forEach>            
                                                </table>
                                            </p>
                                            <input type="hidden" name="action" value="finalizarAtendimento" /><br /><br />
                                            <input type="hidden" name="idagendamento" value="${agendamento.id}" />
                                            <hr />
                                            <br />
                                            <h2>Atendimento</h2>

                                            <label>Diagnóstico: </label><br />
                                            <textarea name="diagnostico" cols="70" rows="10"></textarea><p><br /> <br /> 
                                                <label>Receita: </label><br /><br /> 
                                                <textarea name="receita"  cols="70" rows="10"></textarea><p><br />  
                                                    <input type="submit" class="btn" name="salvar" value="Salvar Consulta" />
                                                    <input type="submit" class="btn" name="cancelar" value="Cancelar Consulta" />
                                                    </form>     


                                                    </div>
                                                    </div>
                                                    </div>
                                                    <div class="clear" style="height:40px"></div> 
                                                    </div>  
                                                    <!-- end content --> 
                                                    </div>  
                                                    <!-- end container --> 
                                                    </div>  
                                                    <div id="footerWrapper"> 
                                                        <div id="footer"> 
                                                            <p style="padding-top:10px"> 
                                                            </p> 
                                                        </div> 
                                                    </div> 
                                                    </div> 
                                                    </div>
                                                    <script type="text/javascript">
                                                        $(function() {
                                                            $("#Button1").button();
                                                        });
                                                        $(function() {
                                                            $("#Tabs1").tabs({
                                                                heightStyle: "content"
                                                            });
                                                        });
                                                        $(function() {
                                                            $("#Checkboxes1").buttonset();
                                                        });
                                                    </script>
                                                    </body>
                                                    </html>
